<div class="container">
<div class="row">
<style>
.wx-name{font-size:12px;margin:5px 0;height:32px;overflow:hidden;line-height:16px;}
</style>
			<div class="col-md-12">
				<portlet  portlet="notitle" title="banner图片切换" custom_class="nopadding">{{if !empty($Category['Uploadfile'])}}
					<div id="bannerCarousel" class="carousel slide" data-interval="3000">
					    <!-- Carousel items -->
					    <div class="carousel-inner">
					    	{{loop $Category['Uploadfile'] $key $file}}
								<div class="{{if $key==0}}active{{/if}} item">
								<img src="{{$this->Html->url($file['fspath'])}}">
								<div class="carousel-caption">
			                      <h4>{{$file['name']}}</h4>
			                    </div>
								</div>
							{{/loop}}
					    </div>
					    <!-- Carousel nav -->
					    <a class="carousel-control left" href="#bannerCarousel" data-slide="prev">&lsaquo;</a>
					    <a class="carousel-control right" href="#bannerCarousel" data-slide="next">&rsaquo;</a>
				    </div>
				    {{/if}}</portlet>
				
			</div>			
	</div>
	
	<div class="row">		
		<div class="col-md-8" style="display: block;">
			<portlet  title="公众号推荐" list_tpl="inner" limit="12" model="Wx" recursive="-1" order="priority desc" info="recursive=-1&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>
			<!-- <small class='pull-right'><a target='_blank' href='/tags/lists/Wx/1'>查看互联网公众号消息>></a></small> -->
			<?php $title='互联网 <small class="pull-right"><a target="_blank" href="/tags/lists/Wx/1">查看互联网公众号消息>></a></small>'; ?>
			<portlet  title="{{$title}}" list_tpl="inner" limit="10" model="TagRelated" recursive="-1" order="priority desc" info="recursive=-1&joins[0][table]=wxes&joins[0][alias]=Wx&joins[0][type]=inner&joins[0][conditions][0]=Wx.id=TagRelated.relatedid&conditions[tag_id]=1&conditions[relatedmodel]=Wx&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>
			<?php $title='创业 <small class="pull-right"><a target="_blank" href="/tags/lists/Wx/4">查看创业公众号消息>></a></small>'; ?>
			<portlet  title="{{$title}}" list_tpl="inner" limit="10" model="TagRelated" recursive="-1" order="priority desc" info="recursive=-1&joins[0][table]=wxes&joins[0][alias]=Wx&joins[0][type]=inner&joins[0][conditions][0]=Wx.id=TagRelated.relatedid&conditions[tag_id]=4&conditions[relatedmodel]=Wx&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>
			<?php $title='科技 <small class="pull-right"><a target="_blank" href="/tags/lists/Wx/3">查看科技公众号消息>></a></small>'; ?>
			<portlet  title="{{$title}}" list_tpl="inner" limit="10" model="TagRelated" recursive="-1" order="priority desc" info="recursive=-1&joins[0][table]=wxes&joins[0][alias]=Wx&joins[0][type]=inner&joins[0][conditions][0]=Wx.id=TagRelated.relatedid&conditions[tag_id]=2&conditions[relatedmodel]=Wx&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>
			<?php $title='房地产 <small class="pull-right"><a target="_blank" href="/tags/lists/Wx/3">查看房地产公众号消息>></a></small>'; ?>
			<portlet  title="{{$title}}" list_tpl="inner" limit="10" model="TagRelated" recursive="-1" order="priority desc" info="recursive=-1&joins[0][table]=wxes&joins[0][alias]=Wx&joins[0][type]=inner&joins[0][conditions][0]=Wx.id=TagRelated.relatedid&conditions[tag_id]=3&conditions[relatedmodel]=Wx&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>
			<?php $title='健康 <small class="pull-right"><a target="_blank" href="/tags/lists/Wx/10">查看健康公众号消息>></a></small>'; ?>
			<portlet  title="{{$title}}" list_tpl="inner" limit="10" model="TagRelated" recursive="-1" order="priority desc" info="recursive=-1&joins[0][table]=wxes&joins[0][alias]=Wx&joins[0][type]=inner&joins[0][conditions][0]=Wx.id=TagRelated.relatedid&conditions[tag_id]=10&conditions[relatedmodel]=Wx&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>
			<?php $title='管理 <small class="pull-right"><a target="_blank" href="/tags/lists/Wx/8">查看管理公众号消息>></a></small>'; ?>
			<portlet  title="{{$title}}" list_tpl="inner" limit="10" model="TagRelated" recursive="-1" order="priority desc" info="recursive=-1&joins[0][table]=wxes&joins[0][alias]=Wx&joins[0][type]=inner&joins[0][conditions][0]=Wx.id=TagRelated.relatedid&conditions[tag_id]=8&conditions[relatedmodel]=Wx&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>
			<?php $title='教育 <small class="pull-right"><a target="_blank" href="/tags/lists/Wx/30">查看教育公众号消息>></a></small>'; ?>
			<portlet  title="{{$title}}" list_tpl="inner" limit="10" model="TagRelated" recursive="-1" order="priority desc" info="recursive=-1&joins[0][table]=wxes&joins[0][alias]=Wx&joins[0][type]=inner&joins[0][conditions][0]=Wx.id=TagRelated.relatedid&conditions[tag_id]=30&conditions[relatedmodel]=Wx&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>
			<?php $title='早教 <small class="pull-right"><a target="_blank" href="/tags/lists/Wx/15">查看早教公众号消息>></a></small>'; ?>
			<portlet  title="{{$title}}" list_tpl="inner" limit="10" model="TagRelated" recursive="-1" order="priority desc" info="recursive=-1&joins[0][table]=wxes&joins[0][alias]=Wx&joins[0][type]=inner&joins[0][conditions][0]=Wx.id=TagRelated.relatedid&conditions[tag_id]=15&conditions[relatedmodel]=Wx&fields[0]=Wx.*&order=Wx.priority desc">
					{{template categories/_recommend_item}}
			</portlet>



		</div>
		<div class="col-md-4">
			<portlet  title="分类标签" list_tpl="inner" limit="50" model="Tag" recursive="-1" order="priority desc" info="recursive=-1&conditions[cate_id]=172&fields[0]=Tag.name&fields[2]=Tag.created&fields[3]=Tag.id&order=priority desc">
					<a href="{{$this->Html->url('/tags/lists/Wx/'.$item['id'])}}">{{$item['name']}}</a>&nbsp;
			</portlet>

			<portlet  title="最新文章" list_tpl="regions/_titlelist" limit="8" custom_class="portlet-title-list"  model="Article" recursive="-1" order="created desc" info="recursive=-1&fields[0]=Article.name&fields[1]=Article.slug&fields[2]=Article.created&fields[3]=Article.id&order=created desc"></portlet>
		</div>
	</div>
</div>